
public class finalSchedule {
	public finalSchedule(){
		
	}
	
	public static void main(String[] args){
			
	}
	/*This method should go through the resulting schedule and check to see if the times
	set are less than the minMeetTime. If they are, set those value 
	Use the getMilTimeSchedule method to do this. */

	public booleanSchedule findCommonMeetingTimes(booleanSchedule advisor, booleanSchedule student){
		booleanSchedule resultSchedule = new booleanSchedule();
		for (int count=0; count<56; count++){
			if(advisor.getAvailable(count) == true && student.getAvailable(count)==true){
				resultSchedule.setAvailable(count);
			}			
		}
		return resultSchedule;
	}
	
	public milTimeSchedule generateResultMilSchedule(milTimeSchedule studentDay, milTimeSchedule adviserDay, int minMeetTime){
		booleanSchedule studentBoolDay = new booleanSchedule();
		booleanSchedule adviserBoolDay = new booleanSchedule();
		booleanSchedule resultBool = new booleanSchedule();
		studentBoolDay.generateSchedule(studentDay);
		adviserBoolDay.generateSchedule(adviserDay);
		resultBool = findCommonMeetingTimes(studentBoolDay, adviserBoolDay);

		milTimeSchedule result = new milTimeSchedule();
		result = resultBool.getMilTimeSchedule(minMeetTime);
		return result;
	}
	public milTimeSchedule generateResultMilSchedule(milTimeSchedule studentDay, milTimeSchedule adviserDay){
		milTimeSchedule result = new milTimeSchedule();
		result = generateResultMilSchedule(studentDay, adviserDay, 30);
		return result;
	}
	
}
